package com.mentaleye.dal.dao;

import java.util.List;
import java.util.Map;

import com.mentaleye.dal.model.Permissions;
import com.mentaleye.dal.model.PermissionsExample;

public interface PermissionsDao {
	
	/**
	 * 权限增加
	 * @param permissions 传入要增加的权限对象
	 * @return
	 */
	 boolean insertPermissions(Permissions permissions);
		
	/**
	 * 权限修改
	 * @param permissions 传入要修改的权限对象
	 * @return
	 */
	 boolean updatePermissions(Permissions permissions);
	
	
	/**
	 * 权限删除
	 * @param ids 根据权限编号删除权限
	 * @return
	 */
	 boolean deletePermissions(List<Integer> permissionsId);
	
	
	 List<Permissions> queryPermissions(Map<String, Object> map);
	 
	 List<Permissions> queryPermissions(PermissionsExample example);

	 public Permissions queryPermissions(Integer permissionsId);
	 
	 public boolean deletePermissionsByparentpermissionsId(Integer parentpermissionsId);
	 
	 public List<Permissions> queryPermissions(List<Integer> permissionsId);
	 public Permissions queryPermissionsByparentpermissionsId(Integer parentpermissionsId);
}
